package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Viewpoint;
import cn.wolfcode.luowowo.article.domain.ViewpointComment;
import cn.wolfcode.luowowo.common.query.ViewpointCommentQueryObject;

import java.util.List;

public interface ViewpointCommentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ViewpointComment record);

    ViewpointComment selectByPrimaryKey(Long id);

    List<ViewpointComment> selectAll();

    int updateByPrimaryKey(ViewpointComment record);

    List<ViewpointComment> selectForList(ViewpointCommentQueryObject qo);

    int selectHasImageNum(Long pointId);

    int selectGoodNum(Long pointId);

    int selectAverageNum(Long pointId);

    int selectBadNum(Long pointId);
}